The input Element




The select Element

The select element defines a drop-down list:

Pre-selected Option

You can preselect an option with the selected attribute:

Visible Option Values

Use the size attribute to specify the number of visible values.



Allow Multiple Selections

Use the multiple attribute to allow the user to select more than one value.



Hold down the Ctrl (windows) / Command (Mac) button to select multiple options.

Textarea

The textarea element defines a multi-line input field.



Styling Textarea

Use CSS to change the size of the textarea:


The button Element

Grouping Form Data with Fieldset

The fieldset element is used to group related data in a form, and the legend element defines a caption for the fieldset element.

Personalia:




The datalist Element

The datalist element specifies a list of pre-defined options for an input element.

The output Element

The output element represents the result of a calculation.

0 100 + =